{include file="public/header" /}
<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>{$Think.lang.wechat_bind_list}</h3>
            </div>
        </div>
    </div>
    <table class="ds-default-table">
        <thead>
            <tr class="thead">
                <th class="align-center"> {$Think.lang.wechat_openid}</th>
                <th class="align-center"> {$Think.lang.wechat_unionid}</th>
                <th class="align-center"> {$Think.lang.wechat_member_name}</th>
                <th class="align-center"> {$Think.lang.wechat_bind_time}</th>
                <th class="align-center"> {$Think.lang.ds_handle}</th>
            </tr>
        </thead>
        <tbody>
            {notempty name="wxmember_list"}
            {foreach name="wxmember_list" item="val"}
            <tr class="member">
                <td class="align-center">{$val.member_wxopenid}</td>
                <td class="align-center">{$val.member_wxunionid}</td>
                <td class="align-center">{$val.member_name}</td>
                <td class="align-center">{:date('Y_m_d H:i:s',$val.member_addtime)}</td>
                <td class="align-center">
                    <a href="javascript:dsLayerOpen('{:url('Member/edit',['member_id'=>$val.member_id])}','{$val.member_name}-{$Think.lang.ds_edit}')" class="dsui-btn-view"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>
                    <a href="javascript:dsLayerOpen('{:url('Wechat/msend',['member_id'=>$val.member_id,'openid'=>$val.member_wxopenid])}','{$Think.lang.wechat_message_send}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.wechat_message_send}</a>
                </td>
            </tr>
            {/foreach}
            {else}
            <tr class="no_data">
                <td colspan="11">{$Think.lang.ds_no_record}</td>
            </tr>
            {/notempty}
        </tbody>
    </table>
    {$show_page|raw}
</div>
